<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <s:set name="isNew" value="id == null"/>
    <s:set var="title">
        查看代码
    </s:set>

    <title><s:property value="#title"/></title>
    <meta name="menu" content="SettingsMenu"/>
    <meta name="menuTab" content="CodeMenuTab"/>
</head>

<body>
<div class="grid_9">
    <h1 class="content_edit">电码维护</h1>
</div>
<div class="grid_6" id="eventbox">
</div>
<div class="clear">
</div>
<div class="grid_15" id="textcontent">

    <form id="mainForm" action="code!save.action" method="post">
        <input type="hidden" name="id" value="${id}"/>
          
        <div class="box-table-input">
            <h2><s:property value="#title"/></h2>
            
            <table>
                <tr>
                    <td class="first">
                        <label>代码类型: </label>
                    </td>
                    <td>
                         <s:property value="model.codeType.shortDesc"/>
                    </td>
                </tr>
                <tr>
                    <td class="first">
                        <label>代码值: </label>
                    </td>
                    <td>
                        <s:property value="model.value"/>
                    </td>
                </tr>
                <tr>
                    <td class="first">
                        <label>代码: </label>
                    </td>
                    <td>
                        <s:property value="model.code"/>
                    </td>
                </tr>
                <tr>
                    <td class="first">
                        <label>描述: </label>
                    </td>
                    <td>
                        <s:property value="model.shortDesc"/>
                    </td>
                </tr>
            </table>

            <p>
                <a class="button" onclick="window.location.href='code.action'"><span>返回</span></a>
            </p>
        </div>
                
    </form>

</div>
</body>
</html>
